<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/util_file/common.jspf"%>
<style>
#admin_product {
	font: 12px/1.2 "돋움", dotum, bold;
}

th {
	background-color: #f1f1f1
}
</style>
<!-- <script type="text/javascript" src="/jeons/js/jquery.nyroModal.custom.js"></script>  
<link rel="stylesheet" href="/jeons/css/nyroModal/nyroModal.css" type="text/css" media="screen"/>-->
<link rel="stylesheet" href="/jeons/css/nyroModal/nyroModal.css"
	type="text/css" media="screen" />
<script type="text/javascript"
	src="/jeons/js/jquery.nyroModal.custom.js"></script>
<script src="/jeons/js/jquery.metadata.js" type="text/javascript"></script>
<script src="/jeons/js/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript" src="/jeons/js/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="/jeons/js/datepicker.util.js"></script>
<script type="text/javascript" src="/jeons/js/jquery.meio.mask.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		//팝업
		$(".nm").nm({
			sizes:{
				minW : 400,
				maxW : 500,
				minH : 800,
				maxH : 400
			},stack:true
		});
		//팝업 현재상태바꾸기 팝업
		$(".status").nm({
			sizes:{
				minW : 300,
				maxW : 600,
				minH : 300,
				maxH : 300
			}
		});
		
		//전체 체크 전체해제
		$('#allChk').click( function(){
			if($(this).is(":checked")){
				$("[name=chk]").attr("checked", "checked");
			}else{
				$("[name=chk]").removeAttr("checked");
			}
		});
		
		
		//체인지 할때마다 값에 알맞은 리스트를 뿌려준다
		$('#searchtype').change( function(){
			$("#search").submit();
		});
		
		
	});
</script>
<div id="admin_product">
	<br>
	<fieldset class="autotab ui-widget ui-widget-content ui-corner-all">
		<form:form commandName="search" method="get">
			<table width="650px">
				<tr>
					<th>조건</th>
					<td><form:select path="searchtype">
							<form:option value="">선택</form:option>
							<form:options items="${code}" itemLabel="code" itemValue="value" />
						</form:select></td>
				</tr>
			</table>
		</form:form>
	</fieldset>
</div><Br>
<div id="admin_product">
	<fieldset class="autotab ui-widget ui-widget-content ui-corner-all">
		<form id="frm">
			<input type="text" name="u_id" value="${sessionScope.u_id}" />

			<table border="0" width="650px" height="50">
				<tr>
					<td colspan="7" bgcolor="#000000" height="1"></td>
				</tr>
				<tr>
					<th align="center"><input type="checkbox" id="allChk"></th>
					<th align="center">아이디</th>
					<th align="center">금액</th>
					<th align="center">은행</th>
					<th align="center">현재상태</th>
					<th align="center">입금신청일</th>
				</tr>
				<tr>
					<td colspan="7" bgcolor="#ffffff" height="1"></td>
				</tr>
				<tr>
					<td colspan="7" bgcolor="#ffffff" height="1"></td>
				</tr>
				<c:forEach items="${data}" var="item" varStatus="status">
					<tr dealno="${item.dealno}">
						<td align="center"><input type="checkbox" name="chk"
							value="${item.dealno}" /></td>
						<td align="center"><a
							href="/jeons/admin/transactions/info_transactions?dealno=${item.dealno}" class="nm">${item.u_id}</a></td>
						<td align="center">${item.goods_price_pb}</td>
						<td align="center">${item.p_bank}</td>
						<td align="center">${item.status_string}</td>
						<td align="center"><fmt:formatDate value="${item.rg}" pattern="yyyy-MM-dd hh:sss"/></td>
					</tr>
					<tr>
						<td colspan="7" bgcolor="#ffffff" height="1"></td>
					</tr>
				</c:forEach>
				<tr>
					<td colspan="7" bgcolor="#ffffff" height="1"></td>
				</tr>
				<tr align="right">
					<td colspan="7"><a href="/jeons/admin/transactions/ModifyAndUpdate" class="status" ><button type="button">현재상태변경</button></a></td>
				</tr>
			</table>
		</form>
		<div id="subpage"></div>
		<fieldset class="autotab ui-widget ui-widget-content ui-corner-all">
</div>